package com.song.api.controller.admin;

import com.song.grace.result.GraceJSONResult;
import com.song.pojo.bo.SaveFriendLinkBO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@Api(value = "首页友情链接维护", tags = {"首页友情链接维护controller"})
@RequestMapping("friendLinkMng")
public interface FriendLinkMngControllerApi {


    @ApiOperation(value = "增加或修改友情链接", notes = "增加或修改友情链接", httpMethod = "POST")
    @PostMapping("saveOrUpdateFriendLink")
    public GraceJSONResult friendLinkMngControllerApi(@RequestBody @Valid SaveFriendLinkBO saveFriendLinkBO);

    @ApiOperation(value = "查询友情链接", notes = "查询友情链接", httpMethod = "POST")
    @PostMapping("getFriendLinkList")
    public GraceJSONResult getFriendLinkList();

    @ApiOperation(value = "删除友情链接", notes = "删除友情链接", httpMethod = "POST")
    @PostMapping("delete")
    public GraceJSONResult delete(@RequestParam String linkId);

    @ApiOperation(value = "门户首页查询友情链接列表", notes = "门户首页查询友情链接列表", httpMethod = "GET")
    @GetMapping("portal/list")
    public GraceJSONResult queryPortalFriendLinkList();


}
